public class andsoon {
    public static void main(String[] args) {
    int x=getsum(12,37,390,30,27);
    System.out.println(x);

    }
    public static int getsum(int... x){
        int sum=0;
        for(int i=0;i<x.length;i++) {
            sum+=x[i];
        }
        return sum;
    }
}
